From: Benjamin Otte Date: Sat, 14 Jan 2012 16:20:15 +0000 (+0100) Subject: styleproperties: Add a warning X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~18205 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bd8fefb20e42d0ac47f1d561db715e4f1f398e29;p=gtk%2B3.0.git styleproperties: Add a warning GtkStyleProperties stores computed values. Make sure it does. --- diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c index a92d72219e..4643a93a2c 100644 --- a/gtk/gtkstyleproperties.c +++ b/gtk/gtkstyleproperties.c @@ -439,6 +439,8 @@ _gtk_style_properties_set_property_by_property (GtkStyleProperties *props, PropertyData *prop; GValue *val; + g_return_if_fail (G_VALUE_TYPE (value) == _gtk_css_style_property_get_computed_type (style_prop)); + priv = props->priv; prop = g_hash_table_lookup (priv->properties, style_prop);